package com.example.bidserver.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel(value="出价")
public class Bid {
    @TableId
    @ApiModelProperty(value="主键")
    private String id;
    @TableField("user_id")
    @ApiModelProperty(value="用户名")
    private String userId;
    @TableField("goods_id")
    @ApiModelProperty(value="商品id")
    private String goodsId;
    @TableField("time")
    @ApiModelProperty(value="创建时间")
    private Date time;
    @TableField("price")
    @ApiModelProperty(value="价格")
    private double price;
    @TableField("status")
    @ApiModelProperty(value="出价状态 1未处理2同意3不同意")
    private int status;

    public Bid(){
    }

}
